import Mock from 'mockjs2'
const panels = {
  success: true,
  totalNum: 7,
  'voList|7': [
      {
          // merchantNumber: '@integer',
          // name: '@cname',
          // 'shopCount|1-100': 100,
          // provideAccount: '@boolean',
          // categoryName: '@string',
          // contacts: '@cname',
          // contactsPhone: /^1[3456789]\d{9}$/,
          // createTime: '@datetime',
          // dingUserName: '@cname',
          // orgName: '@string',
          id: '@id',
          'storeList|3': [
            {
              id: '@id',
              name: '@ctitle'
            }
          ],
          'periods|3': [
            {
              periodId: '@id',
              periodName: '@ctitle'
            }
          ],
          'scale': [
            {
              dataKey: 'value',
              min: 0
            },
            {
              dataKey: 'year',
              min: 0,
              max: 1
            }
          ],
          'dpMtData|9': [
            {
              year: Mock.Random.date('yyyy'),
              value: Mock.mock('@integer(1, 10)')
            }
          ]
      }
  ]
}

Mock.mock(/\/api\/getPanelList/, 'get', panels)
